import { Entity, Column, ManyToMany, JoinTable, OneToMany } from 'typeorm';
import { Base } from './base.entity';
import { ApiProperty } from '@nestjs/swagger';
import { TemplateCategory } from './template-category.entity';

@Entity()
export class Category extends Base {
  @Column({ length: 500 })
  @ApiProperty({ title: '名称' })
  name: string;

  @Column('text')
  @ApiProperty({ title: '描述' })
  description: string;
}
